/**
 * Created with IntelliJ IDEA.
 * User: 卞京帅{bjslogin@gmail.com}
 * Date: 12-12-3
 * Time: 下午9:47
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.route.ConPortCountryWin',{
    extend:'Ext.window.Window',
    alias:'widget.conPortCountryWin',
    title:'国家信息',
    height:140,
    width:300,
    closeAction:'hide',
    modal:true,
    buttonAlign:'center',
    initComponent:function(){
        this.buttons = this.buildButtons();
        this.items = this.buildItems();
        this.callParent(arguments);
    },
    buildItems:function(){
        return [{
            xtype:'form',
            items:[{
                xtype:'textfield',
                fieldLabel:'国家编码',
                name:'countryCode'
            },{
                xtype:'textfield',
                fieldLabel:'国家名称',
                name:'countryName'
            },{
                xtype:'textfield',
                fieldLabel:'描述',
                name:'countryDesc'
            },{
                xtype:'hidden',
                name:'countryId'
            },{
                xtype:'hidden',
                name:'version'
            }]
        }];
    },
    buildButtons:function(){
        return [{
            text:'保存',
            action:'save'
        },{
            text:'关闭',
            action:'close'
        }];
    }
});
